package com.lanchetech.user.service.impl;


import com.alibaba.fastjson.JSON;
import com.lanchetech.bean.response.RecommendInfoResp;
import com.lanchetech.bean.response.ResultData;
import com.lanchetech.bean.response.SampleRoomResp;
import com.lanchetech.common.enums.ArticleCatalogEnum;
import com.lanchetech.dao.ArticleMapper;
import com.lanchetech.dao.BannerMapper;
import com.lanchetech.dao.SpuMapper;
import com.lanchetech.entity.Article;
import com.lanchetech.user.service.RecommendService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecommendServiceImpl implements RecommendService {

    @Autowired
    BannerMapper bannerMapper;

    @Autowired
    ArticleMapper articleMapper;

    @Autowired
    SpuMapper spuMapper;

    @Override
    public ResultData<RecommendInfoResp> getRecommendInfo() {
        RecommendInfoResp resp = new RecommendInfoResp();
        resp.setBannerList(bannerMapper.findAll());
        return new ResultData<>(resp);
    }
}